package parser;

import java.util.ArrayList;

public class ReadState {
    public boolean isMultiString;
    public int numOfCmds;
    public int msgType;
    public String resultStr;
    public String[] resultArr;
    public ArrayList<String[]> cmds;
    public int cursor;
    public int count;
    public int alreadyRead;

    public static ReadState getDefaultInstance() {
        ReadState state = new ReadState();
        state.isMultiString = false;
        state.numOfCmds = 0;
        state.msgType = Parser.NONE;
        state.cmds = new ArrayList<>();
        state.cursor = 0;
        state.count = 0;
        state.alreadyRead = 0;
        return state;
    }

    public void resetSomeStatus() {
        this.count = 0;
        this.msgType = Parser.NONE;
    }
}
